<!DOCTYPE html><html><head>
  <title>NEGATED :nth-last-of-type() pseudo-class</title>
  <style type="text/css">.red { background-color : red }
p:not(:nth-last-of-type(3)) { background-color : lime }
dl > *:not(:nth-last-of-type(3n+1)) { background-color : lime }
</style>
  <link rel="author" title="Daniel Glazman" href="http://glazman.org/">
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <meta name="flags" content="">
 </head>
 <body>
<p>This paragraph should be unstyled.</p>
<address>This address should be unstyled.</address>
<p class="red"><!--Replaced (.red) --></p>
<p class="red"><!--Replaced (.red) --></p>
<dl>
  <dt class="red"><!--Replaced (.red) --></dt>
    <dd class="red"><!--Replaced (.red) --></dd>
  <dt class="red"><!--Replaced (.red) --></dt>
    <dd class="red"><!--Replaced (.red) --></dd>
  <dt>Third definition term.</dt>
    <dd>Third definition.</dd>
  <dt class="red"><!--Replaced (.red) --></dt>
    <dd class="red"><!--Replaced (.red) --></dd>
  <dt class="red"><!--Replaced (.red) --></dt>
    <dd class="red"><!--Replaced (.red) --></dd>
  <dt>Sixth definition term.</dt>
    <dd>Sixth definition.</dd>
</dl>

</body></html>